package com.kkb.controller;

import com.kkb.pojo.TbRole;
import com.kkb.pojo.TbSysuserRole;
import com.kkb.service.RoleService;
import com.kkb.service.SysUserService;
import com.kkb.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;


@Controller
@RequestMapping("/roleController")
public class RoleController {


    @Autowired
    private RoleService roleService;


    /**
     * 获取所有角色列表
     */
    @RequestMapping("/getList")
    @ResponseBody
    public List<TbRole> getRoleList(){
        return roleService.getRoleList();
    }

}
